package com.designpatterns.factory.factory3.stroe;

import com.designpatterns.factory.factory3.pizza.BasePizza;

/**
 * @author Brook
 */
public abstract class BasePizzaStore {
    public BasePizza orderPizza(String type){
        BasePizza basePizza;
        basePizza = createPizza(type);

        basePizza.prepare();
        basePizza.bake();
        basePizza.cut();
        basePizza.box();
        return basePizza;
    }

    public abstract BasePizza createPizza(String type);
}
